import request from '@/utils/request'

// 查询最后位置列51GPS列表
export function listRecords(query) {
  return request({
    url: '/gwebmgr/records/list',
    method: 'get',
    params: query
  })
}

// 查询最后位置列51GPS详细
export function getRecords(recordsid) {
  return request({
    url: '/gwebmgr/records/' + recordsid,
    method: 'get'
  })
}

// 新增最后位置列51GPS
export function addRecords(data) {
  return request({
    url: '/gwebmgr/records',
    method: 'post',
    data: data
  })
}

// 修改最后位置列51GPS
export function updateRecords(data) {
  return request({
    url: '/gwebmgr/records',
    method: 'put',
    data: data
  })
}

// 删除最后位置列51GPS
export function delRecords(recordsid) {
  return request({
    url: '/gwebmgr/records/' + recordsid,
    method: 'delete'
  })
}

// 导出最后位置列51GPS
export function exportRecords(query) {
  return request({
    url: '/gwebmgr/records/export',
    method: 'get',
    params: query
  })
}
